import request from '../utils/request'

export function getStoreList(params = {}) {
  return request({
    url: '/api/stores',
    method: 'get',
    params
  })
}

export function getNearbyStores(latitude, longitude) {
  return request({
    url: '/api/stores/nearby',
    method: 'get',
    params: { latitude, longitude }
  })
}